package com.niit.session16.generic;

public class Phone {
	private String model;
	private double price;
	private String properties;

//	重写了toString()方法之后，可以返回这个类里所有的属性拼接成的一个字符串
//	快捷键：alt+shift+s 选择Generate toString()
	@Override
	public String toString() {
		return "Phone [model=" + model + ", price=" + price + ", properties=" + properties + "]";
	}

	public Phone(String model, double price, String properties) {
		super();
		this.model = model;
		this.price = price;
		this.properties = properties;
	}

	public Phone() {
		super();
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getProperties() {
		return properties;
	}

	public void setProperties(String properties) {
		this.properties = properties;
	}

}
